<?php

class tsw_humidity implements ThermdSingleWidget
{
  public function drawWidget($io,$x,$y)
  {	
		$val = ThermdStats::ts_readCurrent(ThermdStats::$humidity_log_id,0); 
  
		if($val!==FALSE)
		{
		  $blue = imagecolorallocate($io,0,0,163);
			imagestring($io,3,$x,$y,'Humidity: '.$val.'%',$blue);
		}
  }
}

?>